home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 2004 May / SGI IRIX 6.5 Applications 2004 May.iso / dev / java2_dev.idb / usr / java2 / bin / java-rmi.cgi.z / java-rmi.cgi
Text File  |  2004-02-24  |  2KB  |  56 lines

  1. #!/bin/sh
  2.  
  3. #
  4. # Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. # SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. #
  7.  
  8. #
  9. # @(#)java-rmi.cgi.sh    1.7 02/06/11
  10. #
  11.  
  12. #
  13. # This script executes the Java interpreter, defines properties
  14. # that correspond to the CGI 1.0 environment variables, and executes
  15. # the class "sun.rmi.transport.proxy.CGIHandler".  It should be
  16. # installed in the directory to which the HTTP server maps the
  17. # URL path "/cgi-bin".
  18. #
  19. # (Configuration is necessary as noted below.)
  20. #
  21. # This class will support a QUERY_STRING of the form "forward=<port>"
  22. # with a REQUEST_METHOD "POST".  The body of the request will be
  23. # forwarded (as another POST request) to the server listening on the
  24. # specified port (must be >= 1024).  The response from this forwarded
  25. # request will be the response to the original request.
  26. #
  27. # CONFIGURATION:
  28. #
  29. # Fill in correct absolute path to Java interpreter below.  For example,
  30. # the "PATH=" line might be changed to the follow if the JDK is installed
  31. # at the path "/home/peter/java":
  32. #
  33. # PATH=/home/peter/java/bin:$PATH
  34. #
  35. PATH=/usr/java2/bin:$PATH
  36. exec java \
  37.     -DAUTH_TYPE="$AUTH_TYPE" \
  38.     -DCONTENT_LENGTH="$CONTENT_LENGTH" \
  39.     -DCONTENT_TYPE="$CONTENT_TYPE" \
  40.     -DGATEWAY_INTERFACE="$GATEWAY_INTERFACE" \
  41.     -DHTTP_ACCEPT="$HTTP_ACCEPT" \
  42.     -DPATH_INFO="$PATH_INFO" \
  43.     -DPATH_TRANSLATED="$PATH_TRANSLATED" \
  44.     -DQUERY_STRING="$QUERY_STRING" \
  45.     -DREMOTE_ADDR="$REMOTE_ADDR" \
  46.     -DREMOTE_HOST="$REMOTE_HOST" \
  47.     -DREMOTE_IDENT="$REMOTE_IDENT" \
  48.     -DREMOTE_USER="$REMOTE_USER" \
  49.     -DREQUEST_METHOD="$REQUEST_METHOD" \
  50.     -DSCRIPT_NAME="$SCRIPT_NAME" \
  51.     -DSERVER_NAME="$SERVER_NAME" \
  52.     -DSERVER_PORT="$SERVER_PORT" \
  53.     -DSERVER_PROTOCOL="$SERVER_PROTOCOL" \
  54.     -DSERVER_SOFTWARE="$SERVER_SOFTWARE" \
  55.     sun.rmi.transport.proxy.CGIHandler
  56.